package com.itheima.health.dao;

import com.github.pagehelper.Page;
import com.itheima.health.pojo.Permission;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * 权限DAO
 */
public interface PermissionDao {

    Page<Permission> findPage(@Param("queryString") String queryString);


    void update(Permission permission);

    void insert(Permission permission);

    void deleteById(@Param("id") Integer id);

    Permission selectById(@Param("id") Integer id);

    void deletePerssionAndRoleById(@Param("id") Integer id);

    List<Permission> selectByRoleId(@Param("roleId") Integer roleId);
    /**
     * 编辑窗口页面权限信息
     */
    List<Permission> selectAll();

}
